package com.jason.game.online.home.view

import android.content.Context
import android.view.View
import android.widget.ImageView
import com.cby.library.common.base.IViewSection
import com.jason.game.online.R

/**
 * @description: HomeAdViewSection
 *
 * @author ChenBaoyang
 * @date 2021/10/27 15:33
 */
class HomeAdViewSection(context: Context) : IViewSection<Any>(context) {

    override fun populateView() {
        val rankingImage = rootView.findViewById<ImageView>(R.id.iv_main_ranking)
        val gameRoomImage = rootView.findViewById<ImageView>(R.id.iv_main_game_room)

        rankingImage.setOnClickListener {
            // 跳转到排行榜

        }

        gameRoomImage.setOnClickListener{
            // 跳转到游戏厅
        }
    }

    override fun getLayoutId() = R.layout.layout_header_ranking

    override fun setData(data: Any) {

    }
}